package com.hoshiicloud.withdraw.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * (UserContractPlatformRecord)user_contract_platform_record
 *
 * @author makejava
 * @since 2019-08-21 17:31:41
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("user_contract_platform_record")
public class UserContractPlatformRecord extends Model<UserContractPlatformRecord> {

	/**
	 * 主键
	 */
	@TableId("id")
	private Integer id;

	/**
	 * 创建时间
	 */
	@TableField("create_time")
	private Date createTime;

	/**
	 * 修改时间
	 */
	@TableField("update_time")
	private Date updateTime;

	/**
	 * 是否删除
	 */
	@TableField("is_del")
	private Byte isDel;

	/**
	 * 用户id
	 */
	@TableField("user_id")
	private Integer userId;


	/**
	 * 身份证号
	 */
	@TableField("idcard")
	private String idcard;

	/**
	 * 签约公司id
	 */
	@TableField("contract_platform_id")
	private Integer contractPlatformId;

	/**
	 * 工号
	 */
	@TableField("work_number")
	private Integer workNumber;

	/**
	 * 提现收款账号
	 */
	@TableField("bank_account")
	private String bankAccount;

	/**
	 * 账号名称
	 */
	@TableField("bank_name")
	private String bankName;

	/**
	 * 签约状态(0 未签, 1已签, 2失败)
	 */
	@TableField("status")
	private String status;

	/**
	 * 获取主键值
	 *
	 * @return 主键值
	 */
	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}